const getImageUrl = (imgNme) => {
    return constants.HOST_NAME + '/images/miniprogram/' + imgNme;
};

const constants = {
    HOST_NAME: 'https://lichetang.com',
    // HOST_NAME: 'http://localhost:9080',
    DEFAULT_ERROR_MSG: '服务器繁忙，请稍后再试！',
    getImageUrl: getImageUrl,
    cache_key: {
        tokenId:'tokenId',
        sessionid: 'sessionid',
        ENCRYPTED_DATA: "encryptedData",
        SESSION_KEY: "session_key",
        IV: "iv",
        OPENID: "openid",
        USER_ID: "userId",
        PHONE_NUMBER:'phoneNumber'
    },
    AV_VE_COLLISION	 	    :'AV_VE_COLLISION',
    AV_VE_COND			    :'AV_VE_COND',
    AV_VE_PARM			    :'AV_VE_PARM',
    AV_VE_PARM_CLR		    :'AV_VE_PARM_CLR',
    AV_VE_PARM_CTRY		    :'AV_VE_PARM_CTRY',
    AV_VE_PARM_ES		    :'AV_VE_PARM_ES',
    COUPON_TYPE			    :'COUPON_TYPE',
    ORDER_STATUS		    :'ORDER_STATUS',
    SP_HP_MEMO			    :'SP_HP_MEMO',
    SP_PUBLIC_INFO_TYPE	    :'SP_PUBLIC_INFO_TYPE',
    VEHICLE_ENERGY		    :'VEHICLE_ENERGY',
    VEHICLE_USE_CHARACTER	:'VEHICLE_USE_CHARACTER',
    VEHICLE_TYPE		    :'VEHICLE_TYPE'
};
export default constants;

//module.exports = constants;
